package com.zmovie.framework.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 
 * @TableName actor_movie
 */
@TableName(value ="actor_movie")
@Data
@ApiModel("电影和演员关系")
public class ActorMovie implements Serializable {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键id")
    private Integer id;
    /**
     * 电影id
     */
    @ApiModelProperty("电影id")
    @NotNull(message = "电影id不能为空")
    private Integer movieId;

    /**
     * 演员id
     */
    @ApiModelProperty("演员id")
    @NotNull(message = "演员id不能为空")
    private Integer actorId;

    /**
     * 参演角色id
     */
    @ApiModelProperty("参演角色id")
    @NotNull(message = "参演角色id不能为空")
    private Integer actorRoleId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}